<div class="container">
<form class="form form-ajax" method="post" action="{:request()->url()}"  autocomplete="off">
	<div class="tab">
		<div class="tab-title clear">
			<a href="#" class="on">基本设置</a>
			{if $cate['mid']!=3}
			<a href="#">优化设置</a>
			{/if}
		</div>
		<ul class="tab-body">
			<li class="on">
	
	<div class="form-item ">
		<label class="form-label"><span>*</span>标题：</label>
		<div class="form-input">
			<input type="text" class="input" name="name"  data-rule="required"  >
		</div>
	</div>
	<div class="form-item ">
		<label class="form-label">简介：</label>
		<div class="form-input">
			<textarea name="intro" class="textarea"></textarea>
		</div>
	</div>
	<div class="form-item ">
			<label class="form-label">封面：</label>
			<div class="form-input">
				<div class="image" >
					<i>×</i>
					<img src="" onerror="javascript:this.src='/static/admin/image.png'">
					<input type="hidden" name="pic">
				</div>
			</div>
		</div>
		{if $cate['mid']==3}
		<div class="form-item ">
			<label class="form-label">外链：</label>
			<div class="form-input">
				<input type="text" class="input" name="link"    >
			</div>
		</div>
		{else/}
		<div class="form-item ">
			<label class="form-label"><span>*</span>内容：</label>
			<div class="form-input">
				<textarea name="body" class="editor"  ></textarea>
			</div>
		</div>
		{/if}
		
		
		 

	
	</li>
			<li>
				<div class="form-item ">
					<label class="form-label">标题：</label>
					<div class="form-input">
						<input type="text" class="input" name="seo_title"    >
					</div>
				</div>
				<div class="form-item ">
					<label class="form-label">关键词：</label>
					<div class="form-input">
						<textarea name="seo_key" class="textarea"></textarea>
					</div>
				</div>
				<div class="form-item ">
					<label class="form-label">描述：</label>
					<div class="form-input">
						<textarea name="seo_desc" class="textarea"></textarea>
					</div>
				</div>
			</li>
		</ul>
	</div>
	
	<div class="form-item">
		<div class="form-input">
			<button type="submit" class="btn" id="sub">提交</button>
		</div>
	</div>
</form>

</div>

 